<!-- 详情 -->
<template>
    <div class="drawer-layout">
        <el-drawer :title="title" :visible.sync="drawer" @closed="closeCurrentDrawer" size="85%" :wrapperClosable="false">
            <div class="layout" style="position: relative">
                <div class="product-info">
                    <div class="info-lt">
                        <div class="info-image">
                            <el-image src="" style="width: 70px;height: 70px;border-radius: 5px;" />
                        </div>
                        <div class="info-text">
                            <div>商户名称：<span class="info-name fontWeight600">洋河大曲365</span></div>
                            <div>商户类型：<span class="info-type fontWeight600">154.14 ￥</span></div>
                        </div>
                        <div class="info-text marginlf50">
                            <div>联系人：<span class="info-type fontWeight600">洋河大曲365</span></div>
                            <div>商户类目：<span class="info-type fontWeight600">154.14 ￥</span></div>
                        </div>
                        <div class="info-text marginlf50">
                            <div>联系电话：<span class="info-type fontWeight600">洋河大曲365</span></div>
                            <div>覆盖区域：<span class="info-type fontWeight600">154.14 ￥</span></div>
                        </div>
                    </div>
                    <div class="info-rt info-text">
                        <div>状态：<span class="info-green fontWeight600">启用</span></div>
                    </div>
                </div>
                <el-tabs v-model="activeName">
                    <el-tab-pane label="基本信息" name="first">
                        <BasicInformation />
                    </el-tab-pane>
                    <el-tab-pane label="认证信息" name="second">
                        <AuthenticationInformation />
                    </el-tab-pane>
                    <el-tab-pane label="法人/负责人" name="third">
                        <LegalPerson />
                    </el-tab-pane>
                    <el-tab-pane label="收款信息" name="fourth">
                    </el-tab-pane>
                    <el-tab-pane label="商户商品" name="fifth">
                    </el-tab-pane>
                    <el-tab-pane label="商户销售订单" name="sixth">
                    </el-tab-pane>
                    <el-tab-pane label="商户选品记录" name="seventh">
                    </el-tab-pane>
                    <el-tab-pane label="商户财务信息" name="eighth">
                    </el-tab-pane>
                    <el-tab-pane label="商户选品退货记录" name="ninth">
                    </el-tab-pane>
                </el-tabs>
            </div>
        </el-drawer>
    </div>
</template>
<script>
import BasicInformation from './tabs/BasicInformation';//基本信息
import AuthenticationInformation from './tabs/AuthenticationInformation';//认证信息
import LegalPerson from './tabs/LegalPerson';//法人
export default {
    name: "detail",
    props: [
        "title",
    ],
    components: {
        BasicInformation,//基本信息
        AuthenticationInformation,//认证信息
        LegalPerson,//法人
    },
    data() {
        return {
            //drawer默认打开
            drawer: true,
            activeName: "first",

        };
    },
    mounted() {
    },
    methods: {
        // 关闭当前抽屉
        closeCurrentDrawer() {
            this.$parent.closeDrawer();
        },
    },
};
</script>
<style lang="scss">
.drawer-layout {

    /*1.显示滚动条：当内容超出容器的时候，可以拖动：*/
    // .el-drawer__body {
    //     overflow: auto;
    // }

    /*2.隐藏滚动条，太丑了*/
    .el-drawer__container ::-webkit-scrollbar {
        display: none;
    }

    .el-drawer__header {
        background-color: #409eff;
        color: #ffffff;
        padding: 10px 20px;
        margin-bottom: 10px;
    }
}

.textareabox {
    .form-box-item {
        width: 100%;
        display: flex;

        .el-form-item__content {
            width: 100%;
            flex: 1;
        }
    }

}
</style>
<style lang="scss" scoped>
.layout {
    padding: 10px 20px;

    .fontWeight600 {
        font-weight: 600;
    }

    .product-info {
        border-radius: 5px;
        border: 1px solid #EFEFEF;
        display: flex;
        justify-content: space-between;
        padding: 10px 20px;
        margin-bottom: 10px;
        font-size: 14px;
        color: #4E5969;

        .info-lt {
            // width: 50%;
            display: flex;

            .info-image {
                margin-right: 25px;
            }

            .info-name {
                color: #101010;
            }

            .info-type {
                color: #333333;
            }
        }

        .marginlf50 {
            margin-left: 50px;
        }

        .info-rt {
            // width: 50%;

            .info-green {
                color: #67C23A;
            }

            .info-red {
                color: #F56C6C;
            }
        }

        .info-text {
            height: 35px;
            line-height: 35px;
        }
    }

    .tip {
        font-size: 12px;
        color: #4c4c4c;
    }


}



.blockquote-box {
    border-left: 4px solid #409eff;
    padding-left: 16px;
    margin: 16px 0;
    height: 40px;
    line-height: 40px;
    background: #fafafa;
    font-size: 16px;
}

.button-box {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 60%;
    background: #ffffff;
    padding: 20px;

    .next-button {
        height: 30px;
    }
}
</style>